package net.lab1024.sa.admin.module.business.ai.model.vo;

import lombok.Data;
import net.lab1024.sa.admin.module.business.ai.entity.AiModelConfigEntity;

@Data
public class AiModelConfigVO {
    private Long id;
    private String modelName;
    private String displayName;
    private String endpoint;
    private String modelType;
    private String paramsJson;
    private Boolean enable;

    public static AiModelConfigVO fromEntity(AiModelConfigEntity entity) {
        AiModelConfigVO vo = new AiModelConfigVO();
        vo.setId(entity.getId());
        vo.setModelName(entity.getModelName());
        vo.setDisplayName(entity.getDisplayName());
        vo.setEndpoint(entity.getEndpoint());
        vo.setModelType(entity.getModelType());
        vo.setParamsJson(entity.getParamsJson());
        vo.setEnable(entity.getEnable());
        return vo;
    }
} 